<?php


namespace App\Model\Base;


/**
 * Class Api
 * @package App\Model\Base
 * @property integer $api_id
 * @property string $api_name
 * @property string $remark
 * @property string $domain
 * @property string $path
 * @property string $version
 * @property string $method
 * @property string $content_type
 * @property integer $category_id
 * @property integer $project_id
 * @property string $deleted_at
 * @property string $created_at
 * @property string $updated_at
 */
class Api extends BaseModel
{
    /**
     * @var string
     */
    public $table = 'api';
    /**
     * @var string
     */
    public $primaryKey = 'api_id';
    public $fillable = [
        'api_name',
        'path',
        'remark',
        'domain',
        'method',
        'content_type',
        'category_id',
        'project_id',
        'version',
    ];

    /**
     * @return int
     */
    public function getApiId(): int
    {
        return (int)$this->api_id;
    }

    /**
     * @param int $api_id
     */
    public function setApiId(int $api_id): void
    {
        $this->api_id = (int)$api_id;
    }

    /**
     * @return string
     */
    public function getApiName(): string
    {
        return (string)$this->api_name;
    }

    /**
     * @param string $api_name
     */
    public function setApiName(string $api_name): void
    {
        $this->api_name = (string)$api_name;
    }

    /**
     * @return string
     */
    public function getRemark(): string
    {
        return (string)$this->remark;
    }

    /**
     * @param string $remark
     */
    public function setRemark(string $remark): void
    {
        $this->remark = (string)$remark;
    }


    /**
     * @return string
     */
    public function getDomain(): string
    {
        return (string)$this->domain;
    }

    /**
     * @param string $domain
     */
    public function setDomain(string $domain): void
    {
        $this->domain = (string)$domain;
    }

    /**
     * @return string
     */
    public function getPath(): string
    {
        return (string)$this->path;
    }

    /**
     * @param string $path
     */
    public function setPath(string $path): void
    {
        $this->path = (string)$path;
    }

    /**
     * @return string
     */
    public function getVersion(): string
    {
        return (string)$this->version;
    }

    /**
     * @param string $version
     */
    public function setVersion(string $version): void
    {
        $this->version = (string)$version;
    }

    /**
     * @return string
     */
    public function getMethod(): string
    {
        return (string)$this->method;
    }

    /**
     * @param string $method
     */
    public function setMethod(string $method): void
    {
        $this->method = (string)$method;
    }

    /**
     * @return string
     */
    public function getContentType(): string
    {
        return (string)$this->content_type;
    }

    /**
     * @param string $content_type
     */
    public function setContentType(string $content_type): void
    {
        $this->content_type = (string)$content_type;
    }

    /**
     * @return int
     */
    public function getCategoryId(): int
    {
        return (int)$this->category_id;
    }

    /**
     * @param int $category_id
     */
    public function setCategoryId(int $category_id): void
    {
        $this->category_id = (int)$category_id;
    }

    /**
     * @return int
     */
    public function getProjectId(): int
    {
        return (int)$this->project_id;
    }

    /**
     * @param int $project_id
     */
    public function setProjectId(int $project_id): void
    {
        $this->project_id = (int)$project_id;
    }

    /**
     * @return string
     */
    public function getDeletedAt(): string
    {
        return (string)$this->deleted_at;
    }

    /**
     * @param string $deleted_at
     */
    public function setDeletedAt(string $deleted_at): void
    {
        $this->deleted_at = (string)$deleted_at;
    }

}